class Square {
    area : number;
    length : number;
    name : string;
    Square : Shape;
    array : number [];
    getarea () : number {
        this.area = this.length + this.length;
        return this.area;
    }
    setlength (value : number) : void {
        this.length = value;
    }
    setname (value : string) : void {
        this.name = value;
    }
    setSquare (value : Shape) : void {
        this.Square = value;
    }
    setArray (value : number []) : void {
        this.array = value;
    }
}
class Shape {
    area : any;
    setarea (value : any) : void {
        this.area = value;
    }
}
let s : Square = new Square ();
let s2 : Shape = new Shape ();
let i : number [] = [0, 1, 1];
s.setlength (6);
s.setArray (i);
s.setname ("Name");
s.setSquare (s2);
console.log (s.getarea ());
